<?php
class Grade extends AppModel {
    public $name = 'Grade';
    
    public $hasMany = array(
        'Test' => array(
            'className' => 'Test',
            'foreignKey' => 'subject_id',
            'dependent' => true
        )
    );
}
?>